package com.qfedu.knowledge.entity.constant;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

/**
 * @ClassName QuestionConstant
 * @Author ykx
 * @Date 2024/1/9 10:55
 * @Version 1.0
 */
public interface QuestionConstant {
    /**
     * 选项最小个数
     */
    Integer OPTION_MIN_COUNT = 2;

    /**
     * 前缀
     */
    String PREFIX = "YZDD";

    /**
     * 排序字段
     */
    Map<String, String> ORDER_COLUMN_MAP = ImmutableMap.of(
            "creationDate", "creation_date",
            "lastUpdateDate", "last_update_date"
    );

    /**
     * 升序还是降序
     */
    Map<String, String> SORT_MAP = ImmutableMap.of(
            "asc", "asc",
            "ascending", "asc",
            "desc", "desc",
            "descending", "desc"
    );

}
